#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "uthash.h"

/**
 * Note: The returned array must be malloced, assume caller calls free().
 */
int* runningSum(int* nums, int numsSize, int* returnSize);

int main()
{
	return 0;
}

int* runningSum(int* nums, int numsSize, int* returnSize) {
	for (int i = 1, pre = nums[0]; i < numsSize; i++) {
		nums[i] += pre;
		pre = nums[i];
	}

	*returnSize = numsSize;
	return nums;
}
